import axios from "@/model/axios";
import api from "@/model/api";


export const stopBanner = (params) => axios({
    method: "get",
    url: api.stop.banner,
    params
});
export const stopAddCar = (data) => axios({
    method: "post",
    url: api.stop.addbus,
    data,
    headers: {
        "Authorization": window.localStorage.getItem("token")
    }
});
export const stopMyCar = (params) => axios({
    method: "get",
    url: api.stop.mybus,
    params,
    headers: {
        "Authorization": window.localStorage.getItem("token")
    }
});
export const stopDelCar = (id) => axios({
    method: "delete",
    url: api.stop.del + "/" + id,
    headers: {
        "Authorization": window.localStorage.getItem("token")
    }
});
export const stopUpdateCar = (data) => axios({
    method: "put",
    url: api.stop.update,
    data,
    headers: {
        "Authorization": window.localStorage.getItem("token")
    }
});

export const stopAddressList = (params) => axios({
    method: "get",
    url: api.stop.address,
    params
});
export const stopAddressDetail = (id) => axios({
    method: "get",
    url: api.stop.detail + id,
    headers: {
        "Authorization": window.localStorage.getItem("token")
    }
});
export const stopRecord = (params) => axios({
    method: "get",
    url: api.stop.record,
    params
});